package xyz.luhui1hao.sell.utils;

/**
 * @ClassName MathUtil
 * @Description TODO
 * @Author luhui1hao
 * @Date 2018/9/7 下午3:05
 * @Version 1.0
 */
public class MathUtil {
    private static final Double MONEY_RANGE = 0.01;

    public static Boolean equals(Double d1, Double d2){
        Double result = Math.abs(d1 - d2);
        if(result < MONEY_RANGE){
            return true;
        }else {
            return false;
        }
    }
}
